{% for hidden in form.hidden_fields %}
    {{ hidden }}
{% endfor %}

{{ form.non_field_errors }}

{% for field in form.visible_fields %}
  <div class="clearfix {% if field.errors|length > 0%}error{% endif %}">
    {{ field.label_tag }}
    <div class="input">
      {{ field }}
      <span class="help-inline">{{ field.help_text }}</span>
      {{ field.errors }}
    </div>
  </div>
{% endfor %}
